//package com.csx.orm.mybatis.config;
//
//import com.csx.orm.mybatis.interceptor.MybatisSqlInterceptor;
//import org.mybatis.spring.SqlSessionFactoryBean;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
///**
// * <p> what does this class do ? </p>
// * <p> How does it work ?</p>
// * <p> Why does it do this ?</p>
// *
// * @author cuisongxu
// * @date 2023/8/15 周二 13:53
// */
//@Configuration
//public class MyBatisConfig {
//
//    @Bean
//    public SqlSessionFactoryBean sqlSessionFactory(javax.sql.DataSource dataSource) throws Exception {
//        SqlSessionFactoryBean sessionFactory = new SqlSessionFactoryBean();
//        sessionFactory.setDataSource(dataSource);
//
//        // 设置你的自定义拦截器
//        MybatisSqlInterceptor mybatisSqlInterceptor = new MybatisSqlInterceptor();
//        sessionFactory.setPlugins(mybatisSqlInterceptor);
//
//        return sessionFactory;
//    }
//}
//
//
//
//
//
//
